<?
$name = $_POST['cn'];
if ($_POST['description']) {
	$change["description"] = utf8_encode(unhtmlspecialchars($_POST['description']));
	$dn = "cn=$name,ou=groups,".$GLOBALS["dc"];
	ldap_mod_replace($conn,$dn,$change);
};

/*
if ($_POST['newcn'] != $name) {
	$cn = strtolower($_POST['newcn']);
	exec ("/usr/sbin/smbldap-groupmod -n $cn $name 2> /dev/null", $out, $ret);
	echo "$ret: ";
	print_r($out);

};
*/
?>
